<?php
/**
 * Created by PhpStorm.
 * User: duowang.wangduo
 * Date: 14-4-19
 * Time: 下午8:47
 */

class Page extends CI_Controller{
    public function __construct(){
        parent::__construct();
        $this->load->model('group_model');
        $this->load->library('smarty');
    }
    function index(){
        $data['title'] = '淘票么（taopiao.me）';
        $groups = $this->group_model->get_groups();
        $data['groups'] = $groups;
        $this->smarty->view( 'example.tpl', $data );
    }
} 